# -*- coding:utf-8 -*-
from multiprocessing import Pool
from get_Url import page_urls
from get_Detail import get_detail_urls
from get_Detail import get_detail_info
from get_Detail import tb_detail_urls


# 实现多线程
def get_more_details_urls(page_urls):
	for num in range(1,10):
		get_detail_urls(page_urls,num)


def get_more_details_info():
	detail_urls = tb_detail_urls.find()
	for item in detail_urls:
		detail_url = item['detail_url']
		get_detail_info(detail_url)


if __name__ == '__main__':
	pool = Pool()
	pool.map(get_more_details_urls, page_urls.split())
	get_more_details_info()